//
//  KNNEnvCommonMarco.h
//  MockQR
//
//  Created by fangshufeng on 2018/3/5.
//  Copyright © 2018年 fangshufeng. All rights reserved.
//

#ifndef KNNEnvCommonMarco_h
#define KNNEnvCommonMarco_h

#define KNNENvWidth [UIScreen mainScreen].bounds.size.width
#define KNNENvHeight [UIScreen mainScreen].bounds.size.height

#define KNNENv_rgba(r,g,b,a) [UIColor colorWithRed:(r / 255.0) green:(g / 255.0) blue:(b / 255.0) alpha:a]

#define K_MOCK_IS_iPhoneX ([UIScreen mainScreen].bounds.size.width == 375 && [UIScreen mainScreen].bounds.size.height == 812)
/**
 * 导航栏的高度适配所有屏幕 建议使用该方法
 */
static inline CGFloat K_MOCK_NAV_Real_Height() {
    if (K_MOCK_IS_iPhoneX) {
        return 88.0;
    }
    return 64.0;
}

#endif /* KNNEnvCommonMarco_h */

